import request from '../utils/request';
import { PAGE_SIZE } from '../constants';

export function login({ username, password, sjy }) {
    var data = new FormData()
    data.append('username', username)
    data.append('password', password)
    data.append('sjy',sjy)
    return request(`/api/login`, {
        method: 'POST',
        body: data,
    });
}

export function ReStart() {
    var data = new FormData()
    return request(`/api/reStart`, {
        method: 'POST',
        body: data,
    });
}